package xx.thread.base;

public class ThreadRunableStart implements Runnable{

    private String name;

    public ThreadRunableStart(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println(name + "运行：" + i);
        }
    }


    public static void main(String[] args) {

        new Thread(new ThreadRunableStart("C")).start();

        new Thread(new ThreadRunableStart("D")).start();
    }

}
